package com.tqz.dt.business;

import com.tqz.dt.business.config.MainConfig;
import com.tqz.dt.business.service.PayService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * <p>测试类
 *
 * @author tianqingzhao
 * @since 2021/7/7 16:22
 */
public class MainClass {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(MainConfig.class);

        PayService payService = annotationConfigApplicationContext.getBean(PayService.class);
        payService.pay(1, 1, 10);
    }
}
